package com.atguigu.springcloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @Auther:
 * @Description:
 * @Date: 2019/11/27 14:03
 */
@SpringBootApplication
@EnableEurekaClient
@EnableZuulProxy
public class Zuul_Config_9527_App {
    private static final Logger logger = LoggerFactory.getLogger(Zuul_Config_9527_App.class);

    public static void main(String[] args) {
        ConfigurableEnvironment environment = SpringApplication.run(Zuul_Config_9527_App.class).getEnvironment();
        logger.info("\n Local: http://myzuul.com:{}/", environment.getProperty("server.port"));
    }
}
